Skip to content

[fs] Align paimon-gs dependency scopes with sibling filesystem modules - #8938

Merged
JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/gs-align-dependency-scopes
Jul 30, 2026
Merged

[fs] Align paimon-gs dependency scopes with sibling filesystem modules#8938
JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/gs-align-dependency-scopes

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Purpose

fix #8937

  • The published paimon-gs pom leaks paimon-common (and its transitives) at compile scope to Maven/Gradle consumers; on Maven Central, paimon-gs-1.2.0.pom has compile while paimon-s3-1.2.0.pom has provided.
  • Mark paimon-common as provided, matching all 7 sibling filesystem loaders (s3/oss/obs/cosn/azure/jindo/jindodls) — the core classes are supplied by the Paimon engine bundle at runtime.
  • Also mark the paimon-gs-impl runtime dependency <optional>true</optional>, matching the 5 PluginFileIO siblings.
  • Both lines were dropped when [Feature] Add filesystem support for Google Cloud Storage #5238 copied the cosn pom.

Tests

  • Pom-only metadata change — no Java behavior to test, no test added.
  • JDK 11 mvn -pl paimon-filesystems/paimon-gs -am -DfailIfNoTests=false clean install passed (BUILD SUCCESS, checkstyle/spotless/rat included).
  • Verified the installed (dependency-reduced) paimon-gs pom now declares paimon-common with <scope>provided</scope> and no longer lists paimon-gs-impl.

Mark paimon-common as provided and paimon-gs-impl as optional in
paimon-filesystems/paimon-gs/pom.xml, matching the dependency blocks
of the sibling filesystem loader modules (s3/oss/obs/cosn/azure).
Without provided scope, the published paimon-gs pom leaks unshaded
paimon-common and its transitives to Maven/Gradle consumers.

Generated-by: Claude Code
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 191a50f into apache:master Jul 30, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Published paimon-gs pom leaks paimon-common as a compile-scope dependency

2 participants